package org.huatek.anders.utils.jwt;

import lombok.Data;

import java.io.Serializable;

/**
 * @author anders
 * @date 2018-12-04 11:22
 **/
@Data
public class JwtSubject implements Serializable {
    private static final long serialVersionUID = -584103515313936412L;

    private JwtSubject() {
    }

    public JwtSubject(String userId, String userName, String type, long time) {
        this.time = time;
        this.userId = userId;
        this.userName = userName;
        this.type = type;
    }

    private String userId;
    /**
     * 用户名或第三方openId
     */
    private String userName;
    private String type;
    private long time;
}
